package com.my.chapter18;

import java.io.*;

public class practice13 {
    static String file = ".\\src\\com\\my\\chapter18\\OutputPractice13.txt";
    public static void main(String[] args) throws IOException {
        LineNumberReader in =
                new LineNumberReader(
                        new FileReader(".\\src\\com\\my\\chapter18\\practice13.java"));
        PrintWriter out = new PrintWriter(
                new BufferedWriter(new FileWriter(file)));
        String s;
        while((s = in.readLine()) != null )
            out.println(in.getLineNumber() + ": " + s);
        out.close();
        System.out.println(practice7.read(file));
    }
}
